package com.backstage.dao.register;

import com.backstage.entity.UserEntity;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

/**
 * Created by cyn1c on 2018/6/10.
 */
@Repository
public interface RegisterMapper {

    @Insert("insert into user_info (id,username,password,phone,salt,status,addtime) values (" +
            "#{id,jdbcType=VARCHAR},#{userName,jdbcType=VARCHAR},#{password,jdbcType=VARCHAR},#{phone,jdbcType=VARCHAR}," +
            "#{salt,jdbcType=VARCHAR},#{status,jdbcType=VARCHAR},#{addTime,jdbcType=TIMESTAMP})")
    int registerAccount(UserEntity userEntity);
}
